/*
 ============================================================================
 Name		: DocDetailData.h
 Author	  : JohnLZeng
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CDocDetailData declaration
 ============================================================================
 */

#ifndef DOCDETAILDATA_H
#define DOCDETAILDATA_H

// INCLUDES
#include <e32std.h>
#include <e32base.h>

// CLASS DECLARATION

/**
 *  CDocDetailData
 * 
 */
class CDocDetailData : public CBase
	{
public:
	// Constructors and destructor

	/**
	 * Destructor.
	 */
	~CDocDetailData();

	/**
	 * Two-phased constructor.
	 */
	static CDocDetailData* NewL();

	/**
	 * Two-phased constructor.
	 */
	static CDocDetailData* NewLC();

private:

	/**
	 * Constructor for performing 1st stage construction
	 */
	CDocDetailData();

	/**
	 * EPOC default constructor for performing 2nd stage construction
	 */
	void ConstructL();

public:
	void SetTitle(const TDesC& aTitle);
	void AppendTitle(const TDesC& aTitle);
	HBufC* Title() const {return iTitle;};
	
	void AppendContent(const TDesC& aContent);
	HBufC* Content() const {return iContent;};
private:
	HBufC* iTitle;
	HBufC* iContent;

	};

#endif // DOCDETAILDATA_H
